<!-- HTML header for doxygen 1.8.13-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.2"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Connectivity Middleware Utilities Library: Logging functions</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen_style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><a href="http://www.cypress.com/"><img alt="Logo" src="cypress_logo.png"/></a></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Connectivity Middleware Utilities Library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.2 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('group__group__logging__func.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle"><div class="title">Logging functions<div class="ingroups"><a class="el" href="group__group__utils.html">Common middleware utilities</a> &raquo; <a class="el" href="group__logging__utils.html">Logging utilities</a></div></div></div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">General Description</h2>
<p >A logging subsystem provides a set of helper functions to manage logging in the application. </p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga58651ec3d45e88bcf22ad57a7122502b"><td class="memItemLeft" align="right" valign="top">cy_rslt_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__logging__func.html#ga58651ec3d45e88bcf22ad57a7122502b">cy_log_init</a> (<a class="el" href="group__group__logging__enums.html#ga51a7f6067daa4d3c75fd5ee654737fca">CY_LOG_LEVEL_T</a> level, <a class="el" href="group__group__logging__structures.html#ga0d4aaefe596ccbe75b2f906d8f5938f5">log_output</a> platform_output, <a class="el" href="group__group__logging__structures.html#gae2c1f8addf44c6d8c3eae0ba99182f73">platform_get_time</a> platform_time)</td></tr>
<tr class="memdesc:ga58651ec3d45e88bcf22ad57a7122502b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initialize the logging subsystem.  <a href="group__group__logging__func.html#ga58651ec3d45e88bcf22ad57a7122502b">More...</a><br /></td></tr>
<tr class="separator:ga58651ec3d45e88bcf22ad57a7122502b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga9df08670a49c78224aa1826fd0be54fb"><td class="memItemLeft" align="right" valign="top">cy_rslt_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__logging__func.html#ga9df08670a49c78224aa1826fd0be54fb">cy_log_shutdown</a> (void)</td></tr>
<tr class="memdesc:ga9df08670a49c78224aa1826fd0be54fb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Shutdown the logging subsystem.  <a href="group__group__logging__func.html#ga9df08670a49c78224aa1826fd0be54fb">More...</a><br /></td></tr>
<tr class="separator:ga9df08670a49c78224aa1826fd0be54fb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga43ee69c5e9ac44d917a27a1e49bd7098"><td class="memItemLeft" align="right" valign="top">cy_rslt_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__logging__func.html#ga43ee69c5e9ac44d917a27a1e49bd7098">cy_log_set_platform_output</a> (<a class="el" href="group__group__logging__structures.html#ga0d4aaefe596ccbe75b2f906d8f5938f5">log_output</a> platform_output)</td></tr>
<tr class="memdesc:ga43ee69c5e9ac44d917a27a1e49bd7098"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the platform output routine for log messages.  <a href="group__group__logging__func.html#ga43ee69c5e9ac44d917a27a1e49bd7098">More...</a><br /></td></tr>
<tr class="separator:ga43ee69c5e9ac44d917a27a1e49bd7098"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga28fef2ede13ef8109e6b27805ac8f749"><td class="memItemLeft" align="right" valign="top">cy_rslt_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__logging__func.html#ga28fef2ede13ef8109e6b27805ac8f749">cy_log_set_platform_time</a> (<a class="el" href="group__group__logging__structures.html#gae2c1f8addf44c6d8c3eae0ba99182f73">platform_get_time</a> platform_time)</td></tr>
<tr class="memdesc:ga28fef2ede13ef8109e6b27805ac8f749"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the platform routine for getting time stamps for log messages.  <a href="group__group__logging__func.html#ga28fef2ede13ef8109e6b27805ac8f749">More...</a><br /></td></tr>
<tr class="separator:ga28fef2ede13ef8109e6b27805ac8f749"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa063d8ccda8314098cfca1f983197a52"><td class="memItemLeft" align="right" valign="top">cy_rslt_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__logging__func.html#gaa063d8ccda8314098cfca1f983197a52">cy_log_set_facility_level</a> (<a class="el" href="group__group__logging__enums.html#ga77dcf80196a559e0918a18c45b326f3a">CY_LOG_FACILITY_T</a> facility, <a class="el" href="group__group__logging__enums.html#ga51a7f6067daa4d3c75fd5ee654737fca">CY_LOG_LEVEL_T</a> level)</td></tr>
<tr class="memdesc:gaa063d8ccda8314098cfca1f983197a52"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the logging level for a facility.  <a href="group__group__logging__func.html#gaa063d8ccda8314098cfca1f983197a52">More...</a><br /></td></tr>
<tr class="separator:gaa063d8ccda8314098cfca1f983197a52"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga35ea5f0b250f8e2b7fea35f031b6ee06"><td class="memItemLeft" align="right" valign="top">cy_rslt_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__logging__func.html#ga35ea5f0b250f8e2b7fea35f031b6ee06">cy_log_set_all_levels</a> (<a class="el" href="group__group__logging__enums.html#ga51a7f6067daa4d3c75fd5ee654737fca">CY_LOG_LEVEL_T</a> level)</td></tr>
<tr class="memdesc:ga35ea5f0b250f8e2b7fea35f031b6ee06"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the logging level for all facilities.  <a href="group__group__logging__func.html#ga35ea5f0b250f8e2b7fea35f031b6ee06">More...</a><br /></td></tr>
<tr class="separator:ga35ea5f0b250f8e2b7fea35f031b6ee06"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga6b4f9cc32c62adaac3dd357b869c59a1"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__group__logging__enums.html#ga51a7f6067daa4d3c75fd5ee654737fca">CY_LOG_LEVEL_T</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__logging__func.html#ga6b4f9cc32c62adaac3dd357b869c59a1">cy_log_get_facility_level</a> (<a class="el" href="group__group__logging__enums.html#ga77dcf80196a559e0918a18c45b326f3a">CY_LOG_FACILITY_T</a> facility)</td></tr>
<tr class="memdesc:ga6b4f9cc32c62adaac3dd357b869c59a1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the logging level for a facility.  <a href="group__group__logging__func.html#ga6b4f9cc32c62adaac3dd357b869c59a1">More...</a><br /></td></tr>
<tr class="separator:ga6b4f9cc32c62adaac3dd357b869c59a1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac30db641e4001edf1692b13e75cb0659"><td class="memItemLeft" align="right" valign="top">cy_rslt_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__logging__func.html#gac30db641e4001edf1692b13e75cb0659">cy_log_msg</a> (<a class="el" href="group__group__logging__enums.html#ga77dcf80196a559e0918a18c45b326f3a">CY_LOG_FACILITY_T</a> facility, <a class="el" href="group__group__logging__enums.html#ga51a7f6067daa4d3c75fd5ee654737fca">CY_LOG_LEVEL_T</a> level, const char *fmt,...)</td></tr>
<tr class="memdesc:gac30db641e4001edf1692b13e75cb0659"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write a log message.  <a href="group__group__logging__func.html#gac30db641e4001edf1692b13e75cb0659">More...</a><br /></td></tr>
<tr class="separator:gac30db641e4001edf1692b13e75cb0659"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga7a2cc061bf37ae6a1538b80b38bb88ca"><td class="memItemLeft" align="right" valign="top">cy_rslt_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__logging__func.html#ga7a2cc061bf37ae6a1538b80b38bb88ca">cy_log_printf</a> (const char *fmt,...)</td></tr>
<tr class="memdesc:ga7a2cc061bf37ae6a1538b80b38bb88ca"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write a log message bypassing the log level check.  <a href="group__group__logging__func.html#ga7a2cc061bf37ae6a1538b80b38bb88ca">More...</a><br /></td></tr>
<tr class="separator:ga7a2cc061bf37ae6a1538b80b38bb88ca"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gab9d1cb336ea7bb6b51b37d7d06b5f891"><td class="memItemLeft" align="right" valign="top">cy_rslt_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__group__logging__func.html#gab9d1cb336ea7bb6b51b37d7d06b5f891">cy_log_vprintf</a> (const char *fmt, va_list varg)</td></tr>
<tr class="memdesc:gab9d1cb336ea7bb6b51b37d7d06b5f891"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write a log message bypassing the log level check using va_list.  <a href="group__group__logging__func.html#gab9d1cb336ea7bb6b51b37d7d06b5f891">More...</a><br /></td></tr>
<tr class="separator:gab9d1cb336ea7bb6b51b37d7d06b5f891"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a id="ga58651ec3d45e88bcf22ad57a7122502b" name="ga58651ec3d45e88bcf22ad57a7122502b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga58651ec3d45e88bcf22ad57a7122502b">&#9670;&nbsp;</a></span>cy_log_init()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cy_rslt_t cy_log_init </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__group__logging__enums.html#ga51a7f6067daa4d3c75fd5ee654737fca">CY_LOG_LEVEL_T</a>&#160;</td>
          <td class="paramname"><em>level</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__group__logging__structures.html#ga0d4aaefe596ccbe75b2f906d8f5938f5">log_output</a>&#160;</td>
          <td class="paramname"><em>platform_output</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__group__logging__structures.html#gae2c1f8addf44c6d8c3eae0ba99182f73">platform_get_time</a>&#160;</td>
          <td class="paramname"><em>platform_time</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Initialize the logging subsystem. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">level</td><td>: The initial logging level to use for all facilities. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">platform_output</td><td>: Pointer to the function invoked by the library to output the log messages. If this argument is passed as NULL, the library prints the log output on the standard output stream (stdio). </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">platform_time</td><td>: Pointer to the function invoked by the library to get the time. If this argument is passed as NULL, the library calls <a href="https://cypresssemiconductorco.github.io/abstraction-rtos/html/group__group__abstraction__rtos__time.html">cy_rtos_get_time</a> function to get the time required for logging.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>cy_rslt_t </dd></dl>

</div>
</div>
<a id="ga9df08670a49c78224aa1826fd0be54fb" name="ga9df08670a49c78224aa1826fd0be54fb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga9df08670a49c78224aa1826fd0be54fb">&#9670;&nbsp;</a></span>cy_log_shutdown()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cy_rslt_t cy_log_shutdown </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Shutdown the logging subsystem. </p>
<dl class="section return"><dt>Returns</dt><dd>cy_rslt_t </dd></dl>

</div>
</div>
<a id="ga43ee69c5e9ac44d917a27a1e49bd7098" name="ga43ee69c5e9ac44d917a27a1e49bd7098"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga43ee69c5e9ac44d917a27a1e49bd7098">&#9670;&nbsp;</a></span>cy_log_set_platform_output()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cy_rslt_t cy_log_set_platform_output </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__group__logging__structures.html#ga0d4aaefe596ccbe75b2f906d8f5938f5">log_output</a>&#160;</td>
          <td class="paramname"><em>platform_output</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set the platform output routine for log messages. </p>
<dl class="section note"><dt>Note</dt><dd>If platform_output is NULL, log messages will be discarded.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">platform_output</td><td>: Pointer to the platform output routine for log messages.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>cy_rslt_t </dd></dl>

</div>
</div>
<a id="ga28fef2ede13ef8109e6b27805ac8f749" name="ga28fef2ede13ef8109e6b27805ac8f749"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga28fef2ede13ef8109e6b27805ac8f749">&#9670;&nbsp;</a></span>cy_log_set_platform_time()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cy_rslt_t cy_log_set_platform_time </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__group__logging__structures.html#gae2c1f8addf44c6d8c3eae0ba99182f73">platform_get_time</a>&#160;</td>
          <td class="paramname"><em>platform_time</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set the platform routine for getting time stamps for log messages. </p>
<dl class="section note"><dt>Note</dt><dd>If platform_time is NULL, cy_time_get_time() is used for time stamps.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">platform_time</td><td>: Pointer to a platform time routine for log message time stamps.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>cy_rslt_t </dd></dl>

</div>
</div>
<a id="gaa063d8ccda8314098cfca1f983197a52" name="gaa063d8ccda8314098cfca1f983197a52"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaa063d8ccda8314098cfca1f983197a52">&#9670;&nbsp;</a></span>cy_log_set_facility_level()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cy_rslt_t cy_log_set_facility_level </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__group__logging__enums.html#ga77dcf80196a559e0918a18c45b326f3a">CY_LOG_FACILITY_T</a>&#160;</td>
          <td class="paramname"><em>facility</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__group__logging__enums.html#ga51a7f6067daa4d3c75fd5ee654737fca">CY_LOG_LEVEL_T</a>&#160;</td>
          <td class="paramname"><em>level</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set the logging level for a facility. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">facility</td><td>: The facility for which to set the log level. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">level</td><td>: The new log level to use.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>cy_rslt_t </dd></dl>

</div>
</div>
<a id="ga35ea5f0b250f8e2b7fea35f031b6ee06" name="ga35ea5f0b250f8e2b7fea35f031b6ee06"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga35ea5f0b250f8e2b7fea35f031b6ee06">&#9670;&nbsp;</a></span>cy_log_set_all_levels()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cy_rslt_t cy_log_set_all_levels </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__group__logging__enums.html#ga51a7f6067daa4d3c75fd5ee654737fca">CY_LOG_LEVEL_T</a>&#160;</td>
          <td class="paramname"><em>level</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set the logging level for all facilities. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">level</td><td>: The new log level to use.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>cy_rslt_t </dd></dl>

</div>
</div>
<a id="ga6b4f9cc32c62adaac3dd357b869c59a1" name="ga6b4f9cc32c62adaac3dd357b869c59a1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga6b4f9cc32c62adaac3dd357b869c59a1">&#9670;&nbsp;</a></span>cy_log_get_facility_level()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__group__logging__enums.html#ga51a7f6067daa4d3c75fd5ee654737fca">CY_LOG_LEVEL_T</a> cy_log_get_facility_level </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__group__logging__enums.html#ga77dcf80196a559e0918a18c45b326f3a">CY_LOG_FACILITY_T</a>&#160;</td>
          <td class="paramname"><em>facility</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the logging level for a facility. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">facility</td><td>: The facility for which to return the log level.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The current log level. </dd></dl>

</div>
</div>
<a id="gac30db641e4001edf1692b13e75cb0659" name="gac30db641e4001edf1692b13e75cb0659"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gac30db641e4001edf1692b13e75cb0659">&#9670;&nbsp;</a></span>cy_log_msg()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cy_rslt_t cy_log_msg </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__group__logging__enums.html#ga77dcf80196a559e0918a18c45b326f3a">CY_LOG_FACILITY_T</a>&#160;</td>
          <td class="paramname"><em>facility</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__group__logging__enums.html#ga51a7f6067daa4d3c75fd5ee654737fca">CY_LOG_LEVEL_T</a>&#160;</td>
          <td class="paramname"><em>level</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>fmt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>...</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Write a log message. </p>
<dl class="section note"><dt>Note</dt><dd>The format arguments are the same as for printf.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">facility</td><td>: The facility for the log message. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">level</td><td>: Log level of the message. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">fmt</td><td>: Format control string followed by any optional arguments.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>cy_rslt_t </dd></dl>

</div>
</div>
<a id="ga7a2cc061bf37ae6a1538b80b38bb88ca" name="ga7a2cc061bf37ae6a1538b80b38bb88ca"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga7a2cc061bf37ae6a1538b80b38bb88ca">&#9670;&nbsp;</a></span>cy_log_printf()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cy_rslt_t cy_log_printf </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>fmt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>...</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Write a log message bypassing the log level check. </p>
<dl class="section note"><dt>Note</dt><dd>The format arguments are the same as for printf.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">fmt</td><td>: Format control string followed by any optional arguments.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>cy_rslt_t </dd></dl>

</div>
</div>
<a id="gab9d1cb336ea7bb6b51b37d7d06b5f891" name="gab9d1cb336ea7bb6b51b37d7d06b5f891"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gab9d1cb336ea7bb6b51b37d7d06b5f891">&#9670;&nbsp;</a></span>cy_log_vprintf()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cy_rslt_t cy_log_vprintf </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>fmt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">va_list&#160;</td>
          <td class="paramname"><em>varg</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Write a log message bypassing the log level check using va_list. </p>
<dl class="section note"><dt>Note</dt><dd>The format arguments are the same as for vprintf.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">fmt</td><td>: Format control string. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">varg</td><td>: va_list of arguments.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>cy_rslt_t </dd></dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath">
    <ul>
        <li class="footer">
            Generated for <b>Connectivity Middleware Utilities Library</b> by <b>Cypress Semiconductor Corporation</b>.
            All rights reserved.
        </li>
    </ul>
</div>
</body>
</html>
